package net.caidingke.shepherd.utils.result;

import lombok.Getter;

import java.io.Serializable;

/**
 * @author bowen
 */
@Getter
public class Response implements Serializable {

    private static final long serialVersionUID = -7443567025391054307L;
    protected static final int OK = 200;
    protected static final int ERR = 500;

    private int status;

    private String msg;

    {
        status = OK;
    }

    public Response setStatus(int status) {
        this.status = status;
        return this;
    }

    public Response setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
